package com.zhengjiang.cxf.webservice.service;

import com.zhengjiang.cxf.webservice.domain.User;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import java.util.List;

@WebService(targetNamespace = "http://service.webservice.cxf.zhengjiang.com")
public interface UserService {

    @WebMethod
    String getUserName(@WebParam(name = "name") String name);

    @WebMethod
    boolean addUser(@WebParam(name = "user") User user);

    @WebMethod
    List<User> getAllUser();
}
